/////////////////////////////////////////////////////////////////////////////////
//	File Name	:	"CPlayer.h"
//	
//	Author		:	Sec-C-Games 
//
//	Purpose		:	Object representing the player
//////////////////////////////////////////////////////////////////////////////////
#pragma once
#include "CBase.h"
#include "SGD_Math.h"
#include "AnimationInfo.h"
#include <Windows.h>

class CPlayer : public CBase
{
private:
	char m_cCharge;
	short m_nMagNades;
	AnimationInfo m_aiAnimInfo;
	bool m_bGunRecharging;
	short m_bUpsideDown;
	bool m_bFacing;

public:
	CPlayer();
	~CPlayer();

	void Update(float fElapsedTime);
	void Render();

	char		  GetCharge()		{return m_cCharge;
	short		  GetNumNades()		{return m_nMagNades;}
	AnimationInfo GetAnimInfo()		{return m_AnimInfo;}
	bool		  IsGunRecharging() {return m_bGunRecharging;}
	short		  IsUpsideDown()	{return m_nUpsideDown;}
	bool		  GetFacing()	    {return m_bFacing;}

	void SetCharge(char cCharge) {m_cCharge = cCharge;}
	void SetNumNades(int nNum)	  {m_nMagNades = nNum;}
	void SetAnim(AnimationInfo aiInfo) {m_aiAnimInfo = aiInfo;}
	void SetRecharge(bool bRecharging) {m_bGunRecharging = bRecharging;}
	void SetUpsideDown(short nUpsideDown) {m_bUpsideDown = nUpsideDown;}
	void SetFacing(bool bFacing)	{m_bFacing = bFacing;}
	bool CheckCollision(CBase* pBase);
	//void HandleEvent(CEvent* pEvent);

};